<?php
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
?>
<script type='text/javascript'>
$(document).ready(function() {
    $("input:radio[name='resource']").click(function() {
        //alert($(this).val());
        var source = $(this).val();
        if (source == "IN") {
            window.location.href = "index.php?pages=pet&resource=" + $(this).val();
        } else if (source == "OUT") {
            window.location.href = "index.php?pages=petout&resource=" + $(this).val();
        } else if (source == "COLLECT") {
            window.location.href = "index.php?pages=petcollect&resource=" + $(this).val();
        }
        
    }) ;
});
</script>

<div class='hero-unit' style="width: 600px; margin-left: auto; margin-right: auto">
    <p class="text-center">
    <label>แหล่งเงิน</label>
    <label class="radio inline">
        <input type="radio" id="resource1" name='resource' value="IN"> เงินในงบประมาณ
    </label>
    <label class="radio inline">
        <input type="radio" id="resource2" name='resource' value="OUT"> เงินนอกงบประมาณ
    </label>
<!--    <label class="radio inline">
        <input type="radio" id="resource3" name='resource' value="COLLECT"> เงินสะสม
    </label>-->
    </p>
</div>


